{extend name="base:frame" /}
{block name="main"}
<div class="btnlist"><a href="/admin/cate/edit" class="layui-btn layui-btn-primary">添加</a></div>
<table class="layui-table">
  <thead>
  <tr>
    <th>标题</th>
    <th width="100">图标</th>
    <th width="100">排序</th>
    <th width="200">操作</th>
  </tr>
  </thead>
  <tbody>
  {volist name="list" id="item" }
  <tr>
    <td>{$item.name}</td>
    <td>{notempty name='item.pic'}<img src="{$resurl}{$item.pic}" width="40" height="40" />{/notempty}</td>
    <td>{$item.sort}</td>
    <td><a href="/admin/cate/edit?&id={$item.id}">编辑</a><a href="javascript:del('/admin/cate/del?id={$item.id}','确定要删除么')">删除</a></td>
  </tr>
  {/volist}
  </tbody>
</table>
{/block}
{block name="script"}
<script>
</script>
{/block}